home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / logcheck / logcheck.doc < prev   
Encoding:
Text File  |  1988-01-27  |  1.0 KB  |  29 lines

  1. Check for sucessful Login to the Netware Network.
  2.  
  3. Because Novel's LOGIN.COM does not use ERRORLEVEL, is not possible to know
  4. if the user logged succesfuly to the network.
  5. I wrote a small program, caled LOGCHECK, that tests an ENVIROMENT variable
  6. named LOG.
  7. If LOG=LOGIN_NAME, (for example, LOG=ACCOUNT), login was sucessful; if
  8. LOG=         (blanks), it wasn't.
  9.  
  10. Installation:
  11.  
  12. 1.- To the System Login Script, add the folowing line:
  13.  
  14.          DOS SET LOG=LOGIN_NAME
  15.  
  16. 2.- Put LOGCHECK inside a batch file, for example :
  17.  
  18.              echo off
  19.              cls
  20.              set log=             <-- this "clears" environment variable LOG
  21.              anet3                <-- loads netware shell
  22.              f:                   <-- defaults to LOGIN directory
  23.              :again
  24.              login                <-- asks for login name and password
  25.              logcheck                     <-- checks environment space
  26.              if errorlevel 1 goto again   <-- loops back if LOG=
  27.  
  28. Hope it can be useful for you.
  29.